package my.test.responsibilitychain.best;

import my.test.responsibilitychain.IWomen;

public class Father extends Handler {

    //父亲只处理女儿的请求
    public Father() {
        super(Handler.FATHER_LEVER_REQUEST);
    }

    @Override
    protected void response(IWomen women) {
        System.out.println("----女儿向父亲请示------");
        System.out.println(women.getRequest());
        System.out.println("父亲答复是:同意\n");
    }
}
